Functions exercises - Javascript

Note: all of this is happening in the console